﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.WarehouseCommon
{
    /// <summary>
    /// 入库类型表
    /// </summary>
    [SugarTable("InboundTypes")]
    public class InboundType : BaseEntity
    {
        /// <summary>
        /// 入库类型编号
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int InboundTypeId { get; set; }
        /// <summary>
        /// 入库类型名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)",IsNullable =true)]
        public string InboundTypeName { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int PId { get; set; }
        /// <summary>
        /// 子集
        /// </summary>
        [SugarColumn(IsIgnore =true)]//IsIgnore 被忽略 不会映射到数据库  
        public List<InboundType> Children { get; set; }
    }
}
